Fix the handling of EAGAIN from the transaction_end; we were failing to do any
authoremellor@ewan <emellor@ewan>
Wed, 12 Oct 2005 11:03:03 +0000 (12:03 +0100)
committeremellor@ewan <emellor@ewan>
Wed, 12 Oct 2005 11:03:03 +0000 (12:03 +0100)
commit1d47535f5fe312b1d0e6ef94f4914517ecc53bef
tree685858e9643ed002b81b86bcbfeb67c09bb2bf1c
parentbd0321055f271a12599e5e6502b6f1243f6d3eee
Fix the handling of EAGAIN from the transaction_end; we were failing to do any
work if the transaction caused a retry, because optind had been obliterated.
Achieve this by splitting the main body of the loop off to a separate function,
meaning that we get rid of the goto out at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xenstore/xenstore_client.c